package com.homework.ch02;

import java.util.Iterator;
import java.util.stream.Stream;

/**
 * @author yuxi
 * @version 1.0
 * @date 2025/10/23
 * @Description:
 */
public class Test08 {
    public static void main(String[] args) {
        Stream<Integer> stream1= Stream.of(1,2,3,4,5);
        Iterator<Integer> it=stream1.iterator();
        while(it.hasNext()){
            Integer i=it.next();
            System.out.println(i);
        }

    }
}
